package org.example;

import Mapper.UserMapper;
import bean.User;
import org.aspectj.lang.annotation.Before;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.mybatis.spring.SqlSessionTemplate;
public class UserMapperTest {

    @Autowired
    private ApplicationContext applicationContext;

    private UserMapper userMapper;

    public void setUp() {
        SqlSessionTemplate sqlSessionTemplate = applicationContext.getBean(SqlSessionTemplate.class);
        userMapper = sqlSessionTemplate.getMapper(UserMapper.class);
    }

    User u1 = new User("嘻嘻","123","19");
    userMapper.insertUser
}
